package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName OceanengineReportInfo
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/2 15:07
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "获取多合一数据报表接口返回参数")
public class OceanengineReportInfo {

    /**
     * message : OK
     * code : 0
     * data : {"page_info":{"total_number":1,"page":1,"page_size":3,"total_page":1},"list":[{"metrics":{"form_click_button":0,"active_rate":0,"conversion_rate":0,"cost":0,"download_finish_cost":0,"install_finish_cnt":0,"cpc_platform":0,"click_start_cnt":0,"install_finish_rate":0,"conversion_cost":0,"click_call_cnt":0,"coupon_addition":0,"install_finish_cost":0,"download_finish_rate":0,"in_app_uv":0,"download_finish_cnt":0,"in_app_cart":0,"in_app_detail_uv":0,"deep_convert_rate":0,"download_start":0,"cpm_platform":0,"form":0,"click_counsel":0,"phone":0,"click_start_rate":0,"click_start_cost":0,"active":0,"convert_cnt":0,"show_cnt":0,"ctr":0,"click_cnt":0,"in_app_pay":0,"deep_convert_cost":0,"in_app_order":0,"deep_convert_cnt":0,"consult_effective":0},"dimensions":{"ad_id":1234,"campaign_id":1234,"ad_name":"test","campaign_name":"test","bidword":"吊顶效果图","bidword_id":646051206}}]}
     * request_id : 2019091922112612700000100112248
     */

    private String message;
    private int code;
    private DataBean data;
    private String request_id;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "获取多合一数据报表接口返回参数实体")
    public static class DataBean {
        /**
         * page_info : {"total_number":1,"page":1,"page_size":3,"total_page":1}
         * list : [{"metrics":{"form_click_button":0,"active_rate":0,"conversion_rate":0,"cost":0,"download_finish_cost":0,"install_finish_cnt":0,"cpc_platform":0,"click_start_cnt":0,"install_finish_rate":0,"conversion_cost":0,"click_call_cnt":0,"coupon_addition":0,"install_finish_cost":0,"download_finish_rate":0,"in_app_uv":0,"download_finish_cnt":0,"in_app_cart":0,"in_app_detail_uv":0,"deep_convert_rate":0,"download_start":0,"cpm_platform":0,"form":0,"click_counsel":0,"phone":0,"click_start_rate":0,"click_start_cost":0,"active":0,"convert_cnt":0,"show_cnt":0,"ctr":0,"click_cnt":0,"in_app_pay":0,"deep_convert_cost":0,"in_app_order":0,"deep_convert_cnt":0,"consult_effective":0},"dimensions":{"ad_id":1234,"campaign_id":1234,"ad_name":"test","campaign_name":"test","bidword":"吊顶效果图","bidword_id":646051206}}]
         */

        private PageInfoBean page_info;
        private List<ListBean> list;

        @NoArgsConstructor
        @Data
        @ApiModel(value = "获取多合一数据报表接口返回参数实体_分页信息")
        public static class PageInfoBean {
            /**
             * total_number : 1
             * page : 1
             * page_size : 3
             * total_page : 1
             */

            private int total_number;
            private int page;
            private int page_size;
            private int total_page;
        }

        @NoArgsConstructor
        @Data
        @ApiModel(value = "获取多合一数据报表接口返回参数实体_集合")
        public static class ListBean {
            /**
             * metrics : {"form_click_button":0,"active_rate":0,"conversion_rate":0,"cost":0,"download_finish_cost":0,"install_finish_cnt":0,"cpc_platform":0,"click_start_cnt":0,"install_finish_rate":0,"conversion_cost":0,"click_call_cnt":0,"coupon_addition":0,"install_finish_cost":0,"download_finish_rate":0,"in_app_uv":0,"download_finish_cnt":0,"in_app_cart":0,"in_app_detail_uv":0,"deep_convert_rate":0,"download_start":0,"cpm_platform":0,"form":0,"click_counsel":0,"phone":0,"click_start_rate":0,"click_start_cost":0,"active":0,"convert_cnt":0,"show_cnt":0,"ctr":0,"click_cnt":0,"in_app_pay":0,"deep_convert_cost":0,"in_app_order":0,"deep_convert_cnt":0,"consult_effective":0}
             * dimensions : {"ad_id":1234,"campaign_id":1234,"ad_name":"test","campaign_name":"test","bidword":"吊顶效果图","bidword_id":646051206}
             */

            private MetricsBean metrics;
            private DimensionsBean dimensions;

            @NoArgsConstructor
            @Data
            @ApiModel(value = "数据指标")
            public static class MetricsBean {
                /**
                 * form_click_button : 0.0
                 * active_rate : 0.0
                 * conversion_rate : 0.0
                 * cost : 0.0
                 * download_finish_cost : 0.0
                 * install_finish_cnt : 0.0
                 * cpc_platform : 0.0
                 * click_start_cnt : 0.0
                 * install_finish_rate : 0.0
                 * conversion_cost : 0.0
                 * click_call_cnt : 0.0
                 * coupon_addition : 0.0
                 * install_finish_cost : 0.0
                 * download_finish_rate : 0.0
                 * in_app_uv : 0.0
                 * download_finish_cnt : 0.0
                 * in_app_cart : 0.0
                 * in_app_detail_uv : 0.0
                 * deep_convert_rate : 0.0
                 * download_start : 0.0
                 * cpm_platform : 0.0
                 * form : 0.0
                 * click_counsel : 0.0
                 * phone : 0.0
                 * click_start_rate : 0.0
                 * click_start_cost : 0.0
                 * active : 0.0
                 * convert_cnt : 0.0
                 * show_cnt : 0.0
                 * ctr : 0.0
                 * click_cnt : 0.0
                 * in_app_pay : 0.0
                 * deep_convert_cost : 0.0
                 * in_app_order : 0.0
                 * deep_convert_cnt : 0.0
                 * consult_effective : 0.0
                 */

                private double form_click_button;
                private double active_rate;
                private double conversion_rate;
                private double cost;
                private double download_finish_cost;
                private double install_finish_cnt;
                private double cpc_platform;
                private double click_start_cnt;
                private double install_finish_rate;
                private double conversion_cost;
                private double click_call_cnt;
                private double coupon_addition;
                private double install_finish_cost;
                private double download_finish_rate;
                private double in_app_uv;
                private double download_finish_cnt;
                private double in_app_cart;
                private double in_app_detail_uv;
                private double deep_convert_rate;
                private double download_start;
                private double cpm_platform;
                private double form;
                private double click_counsel;
                private double phone;
                private double click_start_rate;
                private double click_start_cost;
                private double active;
                private double convert_cnt;
                private double show_cnt;
                private double ctr;
                private double click_cnt;
                private double in_app_pay;
                private double deep_convert_cost;
                private double in_app_order;
                private double deep_convert_cnt;
                private double consult_effective;
            }

            @NoArgsConstructor
            @Data
            @ApiModel(value = "维度数据")
            public static class DimensionsBean {
                /**
                 * ad_id : 1234
                 * campaign_id : 1234
                 * ad_name : test
                 * campaign_name : test
                 * bidword : 吊顶效果图
                 * bidword_id : 646051206
                 */

                private Long ad_id;
                private Long campaign_id;
                private String ad_name;
                private String campaign_name;
                private String bidword;
                private Long bidword_id;
            }
        }
    }
}
